package com.ld.control.business.process.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ld.control.business.process.model.ProcessNodeTmpModel;

import java.util.List;

/**
 * <p>
 * 任务流程节点模板表 服务类
 * </p>
 *
 * @author wangfeng
 * @since 2024-04-24
 */
public interface ProcessNodeTmpService extends IService<ProcessNodeTmpModel> {

    /**
     * 添加节点信息
     * @param ProcessTmpId
     */
    void add(Long ProcessTmpId, String allNodeInfo);

    List<ProcessNodeTmpModel> getProcessNodeTmpListByProcessTmpId(Long processTmpId);

    /**
     * 获取下一个节点
     * @param processTmpId
     * @param sourceNodeId
     * @return
     */
    ProcessNodeTmpModel getNextProcessNodeTmp(Long processTmpId, String sourceNodeId);
}
